package com.echoplots.beetl.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class IndexController {

	private static Logger logger = LoggerFactory.getLogger(IndexController.class);

	/**
	 * 测试beetl模板
	 *
	 * @return
	 */
	@RequestMapping("/index")
	public ModelAndView home() {

		ModelAndView modelAndView = new ModelAndView();
		logger.info("index request");
		modelAndView.addObject("email", "327878610@qq.com");
		modelAndView.setViewName("index");

		return modelAndView;
	}

}
